<?php
/**
 * @Author: liuhongbin
 * @Email: 514660094@qq.com
 * @Date: 2019-02-12 16:15:10
 * @Description:
 * @LastEditors: liuhongbin
 * @LastEditTime: xxx
 */

use think\facade\Route;


Route::group('addonGroup', function () {

    Route::resource("index", 'v1.addonAuth.AddonGroup');
    Route::get("getList", "v1.addonAuth.AddonGroup/index");
    Route::post("getCreateForm", "v1.addonAuth.AddonGroup/create");
    Route::post("getEditForm", "v1.addonAuth.AddonGroup/edit");
    Route::post("delete", "v1.addonAuth.AddonGroup/delete");
    Route::post("save", "v1.addonAuth.AddonGroup/save");//保存
    Route::post("update", "v1.addonAuth.AddonGroup/update");//更新
});

Route::group('addonGroup/user', function () {

    Route::post('setUserAddonAuth', 'v1.addonAuth.UserAddonAuth/setUserAddonAuth');
    Route::post('getUserAddonAuthForm', 'v1.addonAuth.UserAddonAuth/getUserAddonAuthForm');

});

//客户端添加应用
Route::group('addonGroup/userPlatform', function () {
    Route::post('getUserAddonList', 'v1.addonAuth.UserPlatformAddonAuth/getUserAddonList');
    Route::post('getUserAddonList2', 'v1.addonAuth.UserPlatformAddonAuth/getUserAddonList2');
    Route::post('getUserAddonAppList', 'v1.addonAuth.UserPlatformAddonAuth/getUserAddonAppList');
    Route::post('getUserAddonAppList2', 'v1.addonAuth.UserPlatformAddonAuth/getUserAddonAppList2');
});

